import { ref } from 'vue'

export default function () {
  // const form = inject('loginForm') as Loginformdata
  const form = ref<HTMLFormElement | null>(null)
  function getLoginFormData() {
    return new FormData(form.value as HTMLFormElement)
  }
  return {
    form,
    getLoginFormData
  }
}
